import { request } from '@umijs/max';
import api from '@/services/api';

export async function login(data) {
  return request(api.session_login, {
    method: 'POST',
    data
  });
}

export async function account_info(params) {
  return request(api.session_account_info, {
    method: 'GET',
    params
  });
}
export async function resources(params) {
  return request(api.session_resources, {
    method: 'GET',
    params
  });
}


export async function logout(data) {
  return request(api.session_logout, {
    method: 'POST',
    data
  });
}

